<template>
	<view>
		<view class="u-content">
				<u-parse :content="content"></u-parse>
		</view>
	</view>
</template>

<script>
	let KMSRT = require('../../../../../service/KMSrichText.js'),mKMSRT
	export default {
		data() {
			return {
				content: ` `
			}
		},
		onLoad() {
			mKMSRT = new KMSRT(this.mNetTool)
		},
		onShow() {
			this.getRtext()
		},
		methods: {
			getRtext(){
				 
				let privacy = uni.getStorageSync('privacy')
				if(privacy){
					this.content = privacy
				}else{
					uni.showLoading({
						title:'获取中...'
					})
					this.NetTool.get('capi/V2/ffarticles/article/nf/list', {
						type: 203
					}, res => {
						uni.hideLoading()
						this.content = res.rows[0].content
						uni.setStorageSync('privacy',res.rows[0].content)
					}) 
				}
				
			}
		}
	}
</script>

<style lang="scss" scoped>
    .u-content {
        padding: 24rpx;
    }
</style>
